<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="css/base.css" />
    <link rel="stylesheet" href="css/info-reg.css" />
    <link rel="stylesheet" type="text/css" href="css/jquery.dialog.css" />
<link rel="stylesheet" href="css/index.css" />
    <link rel="stylesheet" href="css/info-mgt.css" />
    <link rel="stylesheet" href="css/WdatePicker.css" />
<title>毕业生简历管理系统</title>
    <style type="text/css">
        a:link {
            font-size: 12px;
            color: #000000;
            text-decoration: none;
        }
        a:visited {
            font-size: 12px;
            color: #000000;
            text-decoration: none;
        }
        a:hover {
            font-size: 12px;
            color: #999999;
            text-decoration: none;
        }
        h1{
            font-family: 华文行楷;
        }
    </style>
</head>
<body>
<script type="text/javascript" src="js/jquery.js"></script>
<div id="container">
        <div id="hd">
            <div class="hd-wrap ue-clear">
                <div class="top-light"></div>
                <h1>毕业生简历管理系统</h1>
                <div class="login-info ue-clear">
                    <div class="welcome ue-clear"><span>欢迎您,</span><a href="employerRecommend?e_id=${employer.e_id}" class="user-name">${employer.name}</a></div>
                </div>
                <div class="toolbar ue-clear">
                    <a href="employerExit" class="quit-btn exit"></a>
                </div>
            </div>
        </div>
        <div id="bd">
            <div class="wrap ue-clear">
                <div class="sidebar">
                    <h2 class="sidebar-header"><p>功能导航</p></h2>
                    <ul class="nav">
                        <li class="recommend"><div class="nav-header" onclick="employerSkip1()"><a  class="ue-clear"><span>内容推荐</span></a></div></li>
                        <li class="position_manage"><div class="nav-header" onclick="employerSkip8()"><a class="ue-clear"><span>招聘岗位管理</span></a></div>
                        <li class="search"><div class="nav-header" onclick="employerSkip7()"><a class="ue-clear"><span>人才搜索</span></a></div></li>
                        <li class="inform"><div class="nav-header" onclick="employerSkip5()" ><a  class="ue-clear"><span>求职者通知</span></a></div></li>
                        <li class="manage"><div class="nav-header" onclick="employerSkip6()" ><a  class="ue-clear"><span>聘用信息反馈</span></a></div></li>
                    </ul>
                </div>
                <div class="content">
                    <div class="title">
                        <h2>岗位信息修改</h2>
                    </div>
                    <form id="fm" method="post" action="updatePosition">
                        <div class="main">
                            <input name="p_id" hidden value="${position.p_id }">
                            <input name="e_id" hidden value="${position.e_id }">
                            <input name="e_name" hidden value="${position.e_name }">
                            <p class="short-input ue-clear">
                                <label style="text-align: center">公司地址：</label>
                                <input name="address" type="text" value="${position.address }"/>
                            </p>
                            <div class="short-input select ue-clear">
                                <label>岗位名称：</label>
                                <select id="pos_name" name="pos_name" style="width:200px;height:30px;border:1px solid #C5D6E0">
                                    <option>软件工程师</option>
                                    <option>会计</option>
                                    <option>文员</option>
                                    <option>客户经理</option>
                                    <option>网站策划</option>
                                    <option>平面设计师</option>
                                </select>
                            </div>
                            <p class="long-input ue-clear">
                                <label>学历要求：</label>
                                <input name="job_requir" type="text" value="${position.job_requir }" />
                            </p>
                            <div class="short-input select ue-clear">
                                <label>提供月薪：</label>
                                <select id="salary" name="salary"style="width:200px;height:30px;border:1px solid #C5D6E0">
                                    <option >3000-4000</option>
                                    <option >4001-5000</option>
                                    <option >5001-6000</option>
                                    <option >6001-7000</option>
                                    <option >7001-8000</option>
                                </select>
                            </div>
                            <p class="short-input ue-clear">
                                <label>发布时间：</label>
                                <input name="release_time" type="text" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" value="${position.release_time }"/>
                            </p>
                            <p class="long-input ue-clear">
                                <label>具体地址：</label>
                                <input name="spec_address" type="text" value="${position.spec_address }"/>
                            </p>
                            <p class="short-input ue-clear">
                                <label>岗位信息：</label>
                                <textarea name="pos_info" style="height:150px">${position.pos_info }</textarea>
                            </p>
                            <div class="btn ue-clear">
                                <input style="height:50px;width:150px;background-color:#8eb2d2;color:white;border-radius:10px" type="submit" value="修改"/>
                            </div>
                            <input name="comp_info" hidden value="${position.comp_info}">
                        </div>
                    </form>
                </div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/core.js"></script>
<script type="text/javascript" src="js/jquery.dialog.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/WdatePicker.js"></script>
<script>
    function employerSkip1(){ const e_id="${employer.e_id}"; location.href="employerRecommend?e_id="+e_id}
    function employerSkip7(){ const e_id="${employer.e_id}"; location.href="findAllCandidates?e_id="+e_id}
    function employerSkip5(){ const e_id="${employer.e_id}"; location.href="employerNotice?e_id="+e_id}
    function employerSkip6(){ const e_id="${employer.e_id}"; location.href="findAllAcceptedCandidatesByEId?e_id="+e_id}
    function employerSkip8(){ const e_id="${employer.e_id}"; location.href="findAllPositionsByEId?e_id="+e_id}

    const  msg="${message}";
    if(msg){
        alert(msg);
    }

    $("#salary").val("${position.salary}").selected=true;
    $("#pos_name").val("${position.pos_name}").selected=true;

</script>
</html>